﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace Inationsoft.Dictionary
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            if (e.Args != null && e.Args.Count() > 0)
            {
                foreach (string arg in e.Args)
                {
                    switch (arg)
                    {
                        case "-p":
                            this.Properties["ParentalControl"] = true;
                            break;
                        default:
                            this.Properties["Word"] = arg;
                            break;
                    }
                }
               // this.Properties["Word"] = e.Args[0];
            }

            base.OnStartup(e);
        }
    }
}
